<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>设备巡检待办</title>
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <!-- <link rel="stylesheet" type="text/css" href="css/header.css" /> -->
    <link rel="stylesheet" type="text/css" href="css/plantasklist.css" />
    <link rel="stylesheet" type="text/css" href="css/plandevicetaskdetail.css" />
    <link rel="stylesheet" type="text/css" href="css/renwulist.css" />

    <style>
        /* 公共样式 */
        body {
            background: #F7FBFF;
        }

        /* .aui_listbox {
            margin-top: 2.5rem !important;
        } */



        .boxarea {
            border-radius: 14px;
            /* box-shadow: 0px 1px 7px 0px rgba(60, 128, 209, 0.14); */
        }

        .work_beginbtn {
            margin: 25px 0px 35px 0px;
            text-align: center;
            height: 44px;
            line-height: 44px;
            color: #fff;
            background: #289FFF;
            box-shadow: 0px 12px 24px 0px rgba(49, 127, 203, 0.32);
            border-radius: 22px;
        }

        .tapmode {
            width: 70% !important;
            margin: 0 auto;
            margin-top: 8px;
            border-radius: 50px;
            height: 26px;
            line-height: 26px;
            /* background: #289FFF; */
            color: #fff;
        }

        .aui-active {
            border-radius: 50px;
            height: 26px;
            line-height: 26px;
            background: #fff;
            color: #289FFF;
            box-shadow: 0px 1px 5px 0px rgba(60, 128, 209, 0.12);
        }

        .topheader {
            background-size: 100%;
            color: #000;
            height: 2rem;
            position: fixed;
            top: 0px;
            left: 0;
            right: 0;
            background: #289FFF;
            /* 标准的语法 */
        }

        .searchstyle {
            height: 35px;
            text-align: center;
            line-height: 35px;
            top: 1.2rem;
            background: #dfe5f0;
            padding-left: 8%;
            z-index: 97;
        }

        .searchstyle i {
            float: right;
            font-size: 0.6rem;
            margin-right: 4%;
            color: #a2acbb;
        }

        .newstyle {
            background: #92ccfc;
            /* box-shadow: 0px 1px 5px 0px rgba(255, 0, 0, 0.12); */
        }

        .newstyleremove {
            background: #F7FBFF;
            box-shadow: none;
        }

        .boxbg {
            width: 100%;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div id="topheader" class="aui-content headerBox">
            <div class="fullName" id="chooseproject">
                <van-dropdown-menu active-color="#1989fa"  class="aui-margin-r-5 new-van-dropdown-menu" >
                    <van-dropdown-item :title="choosetype.text" ref="choosetype" > 
                        <van-cell v-for="item in menuType" center :title="item.text" @click="onChooseType(item)"  class="new-vant-cell"
                        v-bind:class="{'vant-active':item.type==choosetype.type}">
                          <!-- <template #right-icon>
                            {{item.count}}
                          </template> -->
                        </van-cell>
                      </van-dropdown-item>
                </van-dropdown-menu>
                <van-dropdown-menu active-color="#1989fa"  class="aui-margin-r-5 new-van-dropdown-menu" >
                    <van-dropdown-item :title="optionName" ref="choosetask" > 
                        <van-cell v-for="item in option2" center :title="item.Name" @click="onChooseTask(item)"  class="new-vant-cell"
                        v-bind:class="{'vant-active':item.Type==choosetaskmodel.Type}">
                          <template #right-icon>
                            {{item.Number}}
                          </template>
                        </van-cell>
                      </van-dropdown-item>
                  </van-dropdown-menu>
                  <van-dropdown-menu active-color="#1989fa" class="new-van-dropdown-menu">
                    <van-dropdown-item :title="choosesortmodel.text" ref="choosesort" > 
                        <van-cell v-for="item in option3" center :title="item.text" @click="onChooseSort(item)"  class="new-vant-cell"
                        v-bind:class="{'vant-active':item.value==choosesortmodel.value}">
                        </van-cell>
                      </van-dropdown-item>
                  </van-dropdown-menu>
                <div class="cl"></div>
            </div>
        </div>

        <section id="main_refresh" class="aui-refresh-content">
            <div class="aui_listbox" v-if="selectlist.length>0">
                <!-- <div v-if="can_scroll" class="notodayList ccc"  style="background:none;">
                    没有更多内容
                </div> -->
                <div v-bind:id="'scroll' + item.JpushLogID" class="typeitem" v-for="item in selectlist">
                    <!-- <div class="boxtime">{{item.JpushAddTime}}</div> -->
                    <div class="boxbg">
                        <div class="boxcenter">
                            <div class="boxarea">
                                <div class="work_con_box mainbox">
                                    <div class="workheader">
                                        <div class="work_title_add ellipsis_one fl">
                                            <div class="boxpic"><img src="../image/icon/shebei.png"></div> 
                                            <span class="top-name">{{item.DevicePlanName}}</span>
                                        </div>
                                        <div class="work_time fr">{{item.StartTime}}</div>
                                    </div>
                                    <div class="work_con_box_time marginheight">
                                        <div class="work_con_box_right">
                                            <label>起止时间：{{item.StartTime}} ~ {{item.EndTime}}<span  v-if="item.OutTimeStatusDesc=='超时'"
                                                class="label-btn-red">超时</span></label>
                                        </div>
                                    </div>
                                    <div class="work_con_box_time marginheight">
                                        <div class="work_con_box_right">
                                            <label>任务类型：{{item.PlanTypeDesc}}</label>
                                        </div>
                                    </div>
                                    <div class="work_con_box_time marginheight">
                                        <div class="work_con_box_right">
                                            <label>设备数量：{{item.count}}</label>
                                        </div>
                                    </div>
                                    <div class="work_con_box_time marginheight">
                                        <div class="work_con_box_right">
                                            <label>负责人：{{item.TaskChargeManName}}</label>
                                        </div>
                                    </div>
                                </div>

                                <div class="new-btn-bottom" style="border-top:solid 0.5px #f5f5f5; overflow: hidden;">
                                    <div v-if="item.TaskStatus==1" class="work_beginbtnty3 new-blue-btn"
                                        v-on:click="open_list(item)">
                                        开始任务
                                    </div>
                                    <div v-if="item.TaskStatus==2" class="work_beginbtnty3 new-blue-btn"
                                        v-on:click="open_list(item)">
                                        继续执行
                                    </div>
                                    <div v-if="item.TaskStatus==3" class="work_beginbtnty3 new-blue-btn"
                                        v-on:click="open_list(item)">
                                        查看详情
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="noinfo" id="noorder" v-if="selectlist.length<=0">
                <img src="../image/index/noinfomsg_icon.png" alt="" />
                <h5><br />暂无相关数据</h5>
            </div>
        </section>
    </div>
</body>

<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-slide.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="js/equipment_renwulist.js"></script>

</html>